<%# unless @customer.id.nil? %>
  $("#new_transaction").html("<%=j render 'transactions/form', transaction: Transaction.new(:customer_id => @customer.id) %>");
  <%# end %>
